package com.suxiaoxiao.springbootlearn.designpattern.compoundpattern.goose;

import com.suxiaoxiao.springbootlearn.designpattern.compoundpattern.Quackable;
import com.suxiaoxiao.springbootlearn.designpattern.compoundpattern.observer.Observer;

/**
 * 鹅适配器
 * 适配为鸭
 * @author 、
 */
public class GooseAdapter implements Quackable {

    private Goose goose;

    public GooseAdapter(Goose goose) {
        this.goose = goose;
    }

    @Override
    public void quack() {
        goose.honk();
    }

    @Override
    public void registerObserver(Observer observer) {
        
    }

    @Override
    public void notifyObserver() {

    }
}
